home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / sharutil.2 / sharutil / sharutils-4.2 / lib / Makefile.in < prev    next >
Encoding:
Makefile  |  1995-11-05  |  3.1 KB  |  119 lines

  1. # Makefile for the support library subdirectory of the GNU Shar Utilities
  2. # Copyright (C) 1995 Free Software Foundation, Inc.
  3. #
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17.  
  18. PACKAGE = @PACKAGE@
  19. VERSION = @VERSION@
  20.  
  21. SHELL = /bin/sh
  22.  
  23. srcdir = @srcdir@
  24. top_srcdir = @top_srcdir@
  25. VPATH = @srcdir@
  26.  
  27. subdir = lib
  28.  
  29. AR = ar
  30. CC = @CC@
  31. RANLIB = @RANLIB@
  32.  
  33. DEFS = @DEFS@
  34. CFLAGS = @CFLAGS@
  35. CPPFLAGS = @CPPFLAGS@
  36. LIBS = libshar.a
  37.  
  38. COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
  39.  
  40. # If your system doesn't have alloca, or the one provided is bad, define this.
  41. ALLOCA = @ALLOCA@
  42. ALLOCA_SRC = alloca.c
  43.  
  44. # If your systems has the GNU getopt functions available you may comment
  45. # out the following line.
  46. GETOPT = getopt.o getopt1.o
  47. GETOPTSRC = getopt.c getopt1.c
  48.  
  49. HEADERS = getopt.h md5.h pathmax.h system.h
  50. SOURCES = $(ALLOCA_SRC) basename.c error.c $(GETOPTSRC) md5.c memset.c \
  51. mktime.c stpcpy.c strftime.c whoami.c xgetcwd.c xmalloc.c xstrdup.c
  52. OBJECTS = $(ALLOCA) error.o $(GETOPT) md5.o xgetcwd.o xmalloc.o xstrdup.o \
  53. whoami.o @LIBOBJS@
  54. DISTFILES = ChangeLog Makefile.in $(HEADERS) $(SOURCES)
  55.  
  56. .SUFFIXES:
  57. .SUFFIXES: .c .o
  58. .c.o:
  59.     $(COMPILE) $<
  60.  
  61.  
  62. INCLUDES = -I$(srcdir) -I.. -I../intl -I$(top_srcdir)/intl
  63.  
  64. all: libshar.a $(ANSI2KNR)
  65.  
  66. libshar.a: $(OBJECTS)
  67.     rm -f libshar.a
  68.     $(AR) cru libshar.a $(OBJECTS)
  69.     $(RANLIB) libshar.a
  70.  
  71. ansi2knr: ansi2knr.o
  72.     $(LINK) ansi2knr.o $(LIBS)
  73.  
  74. install install-exec install-data: all
  75.  
  76. uninstall:
  77.  
  78. check: all
  79.  
  80. $(OBJECTS): ../config.h
  81. error.o getopt.o xmalloc.o: ../intl/libgettext.h
  82. getopt.o: getopt.h
  83.  
  84. tags: TAGS
  85.  
  86. TAGS: $(HEADERS) $(SOURCES)
  87.     here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES)
  88.  
  89. id: ID
  90.  
  91. ID: $(HEADERS) $(SOURCES)
  92.     here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES)
  93.  
  94. mostlyclean:
  95.     rm -f *.a *.o core core.*
  96.  
  97. clean: mostlyclean
  98.  
  99. distclean: clean
  100.     rm -f Makefile ID TAGS ansi2knr
  101.  
  102. maintainer-clean: distclean
  103.     @echo "This command is intended for maintainers to use;"
  104.     @echo "it deletes files that may require special tools to rebuild."
  105.  
  106. distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
  107. dist: Makefile $(DISTFILES)
  108.     for file in $(DISTFILES); do \
  109.       ln $(srcdir)/$$file $(distdir) 2> /dev/null \
  110.         || cp -p $(srcdir)/$$file $(distdir); \
  111.     done
  112.  
  113. Makefile: $(srcdir)/Makefile.in ../config.status
  114.     cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
  115.  
  116. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  117. # Otherwise a system limit (for SysV at least) may be exceeded.
  118. .NOEXPORT:
  119.